<?php defined('BASEPATH') OR exit('No direct script access allowed');
/**
 * Description: 后台主控制器
 *
 * @author      Eden
 * @datetime    2016/11/24 21:41
 * @copyright   Beijing CmsTop Technology Co.,Ltd.
 */

class ADM_Controller extends CI_Controller
{
    // 后台模板主目录
    const TMP_DIR = 'admin';

    public function __construct()
    {
        parent::__construct();
        $this->_checkACL();
    }

    public function _checkACL()
    {
        if (!$this->session->has_userdata('adminDetail')) {
            redirect('/login');
            exit;
        }
    }

}
